
import store from '@/store'
// 获取所有地区列表：懒加载 根据pid获取下一级
export const useAllAreaList = (callback, pid = '') => {
    store.dispatch('common/getRegionList', pid).then((res) => {
        callback(res)
    }).catch(err => {
        store.dispatch('message', {
            message: err.message || '请求失败'
        });
    })
}